﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities
{
    public class Flower: AbstractPlant
    {
            private FlowerColor _color;

            public Flower() { }

            public Flower(string name, int price, FlowerColor color)
                : base(name, price)
        {
            _color = color;
        }

            public FlowerColor Color
            {
                get { return _color; }
                set { _color = value; }
            }

            public override string ToString()
            {
                return base.ToString() + " цвет:" + _color;
            }
    }
}
